3.4.40 \(\int x^{-1-n q-p (1+q)} (x^n (a+b x^p))^q \, dx\)

Optimal. Leaf size=40 \[ -\frac {x^{-((q+1) (n+p))} \left (a x^n+b x^{n+p}\right )^{q+1}}{a p (q+1)} \]

________________________________________________________________________________________

Rubi [A]  time = 0.07, antiderivative size = 40, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 28, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.071, Rules used = {1980, 2014} \begin {gather*} -\frac {x^{(q+1) (-(n+p))} \left (a x^n+b x^{n+p}\right )^{q+1}}{a p (q+1)} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[x^(-1 - n*q - p*(1 + q))*(x^n*(a + b*x^p))^q,x]

[Out]

-((a*x^n + b*x^(n + p))^(1 + q)/(a*p*(1 + q)*x^((n + p)*(1 + q))))

Rule 1980

Int[(u_)^(p_.)*((c_.)*(x_))^(m_.), x_Symbol] :> Int[(c*x)^m*ExpandToSum[u, x]^p, x] /; FreeQ[{c, m, p}, x] &&
GeneralizedBinomialQ[u, x] &&  !GeneralizedBinomialMatchQ[u, x]

Rule 2014

Int[((c_.)*(x_))^(m_.)*((a_.)*(x_)^(j_.) + (b_.)*(x_)^(n_.))^(p_), x_Symbol] :> -Simp[(c^(j - 1)*(c*x)^(m - j
+ 1)*(a*x^j + b*x^n)^(p + 1))/(a*(n - j)*(p + 1)), x] /; FreeQ[{a, b, c, j, m, n, p}, x] &&  !IntegerQ[p] && N
eQ[n, j] && EqQ[m + n*p + n - j + 1, 0] && (IntegerQ[j] || GtQ[c, 0])

Rubi steps

\begin {align*} \int x^{-1-n q-p (1+q)} \left (x^n \left (a+b x^p\right )\right )^q \, dx &=\int x^{-1-n q-p (1+q)} \left (a x^n+b x^{n+p}\right )^q \, dx\\ &=-\frac {x^{-((n+p) (1+q))} \left (a x^n+b x^{n+p}\right )^{1+q}}{a p (1+q)}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.04, size = 38, normalized size = 0.95 \begin {gather*} -\frac {x^{-((q+1) (n+p))} \left (x^n \left (a+b x^p\right )\right )^{q+1}}{a p (q+1)} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[x^(-1 - n*q - p*(1 + q))*(x^n*(a + b*x^p))^q,x]

[Out]

-((x^n*(a + b*x^p))^(1 + q)/(a*p*(1 + q)*x^((n + p)*(1 + q))))

________________________________________________________________________________________

IntegrateAlgebraic [F]  time = 0.13, size = 0, normalized size = 0.00 \begin {gather*} \int x^{-1-n q-p (1+q)} \left (x^n \left (a+b x^p\right )\right )^q \, dx \end {gather*}

Verification is not applicable to the result.

[In]

IntegrateAlgebraic[x^(-1 - n*q - p*(1 + q))*(x^n*(a + b*x^p))^q,x]

[Out]

Defer[IntegrateAlgebraic][x^(-1 - n*q - p*(1 + q))*(x^n*(a + b*x^p))^q, x]

________________________________________________________________________________________

fricas [A]  time = 0.41, size = 64, normalized size = 1.60 \begin {gather*} -\frac {{\left (b x x^{-{\left (n + p\right )} q - p - 1} x^{p} + a x x^{-{\left (n + p\right )} q - p - 1}\right )} {\left (b x^{n} x^{p} + a x^{n}\right )}^{q}}{a p q + a p} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^(-1-n*q-p*(1+q))*(x^n*(a+b*x^p))^q,x, algorithm="fricas")

[Out]

-(b*x*x^(-(n + p)*q - p - 1)*x^p + a*x*x^(-(n + p)*q - p - 1))*(b*x^n*x^p + a*x^n)^q/(a*p*q + a*p)

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left ({\left (b x^{p} + a\right )} x^{n}\right )^{q} x^{-p {\left (q + 1\right )} - n q - 1}\,{d x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^(-1-n*q-p*(1+q))*(x^n*(a+b*x^p))^q,x, algorithm="giac")

[Out]

integrate(((b*x^p + a)*x^n)^q*x^(-p*(q + 1) - n*q - 1), x)

________________________________________________________________________________________

maple [F]  time = 0.87, size = 0, normalized size = 0.00 \begin {gather*} \int x^{-n q -\left (q +1\right ) p -1} \left (\left (b \,x^{p}+a \right ) x^{n}\right )^{q}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^(-1-n*q-(q+1)*p)*(x^n*(a+b*x^p))^q,x)

[Out]

int(x^(-1-n*q-(q+1)*p)*(x^n*(a+b*x^p))^q,x)

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left ({\left (b x^{p} + a\right )} x^{n}\right )^{q} x^{-p {\left (q + 1\right )} - n q - 1}\,{d x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^(-1-n*q-p*(1+q))*(x^n*(a+b*x^p))^q,x, algorithm="maxima")

[Out]

integrate(((b*x^p + a)*x^n)^q*x^(-p*(q + 1) - n*q - 1), x)

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int \frac {{\left (x^n\,\left (a+b\,x^p\right )\right )}^q}{x^{n\,q+p\,\left (q+1\right )+1}} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((x^n*(a + b*x^p))^q/x^(n*q + p*(q + 1) + 1),x)

[Out]

int((x^n*(a + b*x^p))^q/x^(n*q + p*(q + 1) + 1), x)

________________________________________________________________________________________

sympy [F(-1)]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x**(-1-n*q-p*(1+q))*(x**n*(a+b*x**p))**q,x)

[Out]

Timed out

________________________________________________________________________________________